<!-- LocalImage.vue -->
<template>
  <img :src="localImagePath" alt="Image" />
</template>

<script>
export default {
  props: {
    relativePath: {
      type: String,
      required: true,
    },
  },
  computed: {
    localImagePath() {
      // 拼接相对路径和本地基础路径
      return "/dev-api" + this.relativePath;
    },
  },
};
</script>
